import QtQuick 2.0

Item {
    id: bg

    property real movespeed: _MOVESPEED

    function update(){
        imgGrand.x -= movespeed
        imgGrand2.x -= movespeed

        if(imgGrand.x <= 0){
            imgGrand2.x = imgGrand.x + imgGrand.width
        }
        if(imgGrand2.x <= 0){
            imgGrand.x = imgGrand2.x + imgGrand2.width
        }
    }

    Image {
        id: imgGrand
        source: "qrc:/images/grand.png"
        x: 0
        y: bg.height - 200
    }

    Image {
        id: imgGrand2
        source: "qrc:/images/grand.png"
        x: imgGrand.width
        y: bg.height - 200
    }


}
